package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ManagerFollowMapper;
import com.zch.dao.model.ManagerFollow;
import com.zch.dao.model.ManagerFollowExample;
import com.zch.daoEx.ManagerFollowMapperEx;
import com.zch.daoEx.model.ManagerFollowEx;

@Service
public class ManagerFollowService {
	@Autowired
	private ManagerFollowMapper managerFollowMapper;
	@Autowired
    private ManagerFollowMapperEx managerFollowMapperEx;

	public int countByExample(ManagerFollowExample example) {
		return this.managerFollowMapper.countByExample(example);
	}

	public ManagerFollow selectByPrimaryKey(String id) {
		return this.managerFollowMapper.selectByPrimaryKey(id);
	}

	public List<ManagerFollow> selectByExample(ManagerFollowExample example) {
		return this.managerFollowMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.managerFollowMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ManagerFollow record) {
		return this.managerFollowMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(ManagerFollow record) {
		return this.managerFollowMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ManagerFollowExample example) {
		return this.managerFollowMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ManagerFollow record, ManagerFollowExample example) {
		return this.managerFollowMapper.updateByExampleSelective(record, example);
	}


	public int updateByExample(ManagerFollow record, ManagerFollowExample example) {
		return this.managerFollowMapper.updateByExample(record, example);
	}

	public int insert(ManagerFollow record) {
		return this.managerFollowMapper.insert(record);
	}

	public int insertSelective(ManagerFollow record) {
		return this.managerFollowMapper.insertSelective(record);
	}

    public List<ManagerFollowEx> selectlist(Map<String, Object> map) {
        return this.managerFollowMapperEx.selectList(map);
    }

    public int updateResolveMaster(String userId, String id) {
        this.managerFollowMapperEx.updateResolveMaster(userId,id);
        return this.managerFollowMapperEx.updateResolveMasterByProjectMessage(userId,id);
        
    }

    public List<ManagerFollowEx> selectAppDetailByInside(Map<String, Object> map) {
        return this.managerFollowMapperEx.selectAppDetailByInside(map);
    }

}
